#include <iostream>
using namespace std;
class PDFParse {
public:
	void parse (const char *pfdfile) {
		cout << "解析出来一个矩形" << endl;
		onRect ();
		cout << "解析出来一个圆形" << endl;
		onCircle ();
	}
private:
	virtual void onRect (void) = 0;
	virtual void onCircle (void) = 0;
};

class PDFRnder:public PDFParse{
private:
	void onRect (void) {
		cout << "绘制一个矩形" << endl;
	}
	void onCircle (void) {
		cout << "绘制一个圆形" << endl;
	}
};


int main (void)
{
	PDFRnder render;
	render.parse("xxx.pdf");

	return 0;
}
